
namespace ApplicationFrame.HostApi
{
    public class Program
    {
        public static void Main(string[] args)
        {
            Environment.CurrentDirectory = AppDomain.CurrentDomain.BaseDirectory;
            var builder = WebApplication.CreateBuilder(args);
            builder.AddApplicationAsync<HostApiAppModule>().ConfigureAwait(false).GetAwaiter().GetResult();

            var app = builder.Build();
            app.InitializeApplication();
            app.Run();
        }
    }
}
